{% comment %}
	@param {boolean} bottom - bottom will render <hr>
{% endcomment %}

{% if site.featured-tags %}
<hr>
<section>
	{% if include.bottom %}
		<hr class="hidden-sm hidden-xs">
	{% endif %}
	<h5><a href="{{'/archive/' | prepend: site.baseurl }}">FEATURED TAGS</a></h5>
	<div class="tags">
		{% capture tags %}
		{% for tag in site.tags %}
				<a data-sort="{{ site.posts.size | minus: tag[1].size | prepend: '0000' | slice: -4, 4 }}" 
					href="{{ site.baseurl }}/archive/?tag={{ tag[0] | url_encode }}"
					title="{{ tag[0] }}"
					rel="{{ tag[1].size }}"
				>
					{{ tag[0] }}
				</a>
		{% endfor %}
		{% endcapture %}
		{{ tags | split:'</a>' | sort | join:'</a>' }}
	</div>
</section>
{% endif %}